Skip to content

ZtringListList: values made only of quotes read with one more quote - #210

Merged
JeromeMartinez merged 1 commit into
MediaArea:masterfrom
JeromeMartinez:ZtringListList_Quotes
Nov 9, 2026
Merged

JeromeMartinez merged 1 commit into
MediaArea:masterfrom
JeromeMartinez:ZtringListList_Quotes

Conversation

@JeromeMartinez

Copy link
Copy Markdown
Member

ZtringListList::Write() took the quote opening a quoted field as the first quote of a double quote when the next character is also a quote. A value made only of quotes, written by Read() as a quoted field with doubled quotes, was read back with one more quote: one quote became two, nine quotes became ten.

A double quote is now an escaped quote only in a quoted field. Values with quotes elsewhere, separators or line breaks are read as before.

Seen with the regression test of MediaInfoLib, which reloads its reference CSV with ZtringListListF: an MPEG Video encoder name made of nine quotes was always reported as a difference.

Write() took the quote opening a quoted field as the first quote of a
double quote when the next character is also a quote. A value made only
of quotes, written by Read() as a quoted field with doubled quotes, was
read back with one more quote: one quote became two, nine quotes became
ten. A double quote is now an escaped quote only in a quoted field.
@JeromeMartinez
JeromeMartinez merged commit 0273b42 into MediaArea:master Nov 9, 2026
16 checks passed
@JeromeMartinez
JeromeMartinez deleted the ZtringListList_Quotes branch November 9, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant